//
//  ESListModel.m
//  Eyeshot
//
//  Created by lanou3g on 15/7/9.
//  Copyright (c) 2015年 eyeshot. All rights reserved.
//

#import "ESListModel.h"

@implementation ESListModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    if ([key isEqualToString:@"id"]) {
        [self setValue:value forKey:@"ID"];
    }
    if ([key isEqualToString:@"type"]) {
        if ([value isKindOfClass:[NSNumber class]]) {
            NSString *value1 = [value stringValue];
            [self setValue:value1 forKey:@"type_"];
        }else{
            [self setValue:value forKey:@"type_"];
        }
    }
    if ([key isEqualToString:@"height"]) {
        [self setValue:value forKey:@"height_"];
    }
    if ([key isEqualToString:@"width"]) {
        [self setValue:value forKey:@"width_"];
    }
}
@end
